<?php 
    //odkaz veduci na homepage - listing projektov (akcia admin_list)
	//'admin' => true znamena, ze v url sa pouzije prefix "admin" a zavila sa akcia s tymto preffixom, cize "admin" + "list" = "admin_list"
	// http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::link
  	$tmp = $this->Html->link('Späť', array('admin' => true, 'controller' => 'projects', 'action' => 'list'));
  	echo str_replace('Späť', '<button class="bold rounded bordered gradient">Späť</button>', $tmp);
?>
<div id="detail">

	<h1>Zmana hesla</h1>
<?php 
	// http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html
	echo $this->Form->create('User', array('action' => 'profile'));
    echo $this->Form->input('password_old', array('type' => 'password', 'value' => '', 'label' => 'Staré heslo'));
    echo $this->Form->input('password', array('type' => 'password', 'value' => '', 'label' => 'Nové heslo'));
    echo $this->Form->input('password_repeat', array('type' => 'password', 'value' => '', 'label' => 'Nové heslo - kontrola'));
    echo $this->Form->end('Save');
?>
</div>